package com.shh.rabbitmq.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"email.direct.queue"})
public class DirectEmailConsumer{
    @RabbitHandler
    public void reviceMessage(String message){
        System.out.println("email接收到了的订单信息是："+message);
    }
}

